package test.demo.controller;


import test.demo.service.PersonTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

@RestController
public class PeopleController {

    @Autowired
    private PersonTest personTest;

    @GetMapping("/testExport")
    public void export(HttpServletResponse response) {
        personTest.exportTest(response);
    }


    @RequestMapping("/testImport")
    public void importExcel(){
      personTest.importTest();
    }


}
